package com.itjavas.cslp2.mapper;

import com.itjavas.cslp2.pojo.entity.Notice;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Update;

@Mapper
public interface NoticeMapper {
    //创建公告
    @Insert("insert into notice(title,content,founder) values (#{title},#{content},#{founder})")
     Boolean createNotice(Notice notice);

    //编辑公告
    @Update("update notice set title=#{title},content=#{content} where id=#{id}")
    Boolean editNotice(Notice notice);
}
